#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/typeof/typeof.hpp>

int main( int argc, char *argv[] )
{
	using namespace std;
	using namespace boost::property_tree;

	ptree pt;
	read_xml( "conf.xml", pt );

	cout << pt.get<string>("conf.theme") << endl;
	cout << pt.get<int>("conf.clock_style") << endl;
	cout << pt.get<long>("conf.gui") << endl;
	cout << pt.get("conf.no_prop", 100) << endl;

	BOOST_AUTO( child, pt.get_child("conf.urls") );
	for( BOOST_AUTO( pos, child.begin() ); pos != child.end(); ++pos )
	{
		cout << pos->second.data() << ",";
	}
	cout << endl;
}

